<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>hello</title>
    <style type="text/css">
        html,body{
        width: 100%;
        height: 100%;
        }

        .mui-content {
            background: url(img/background.png) bottom center no-repeat #efeff4;
            background-size: 100% 100%;
            width: 100%;
            height: 100%;
        }
    </style>


</head>
<body class="mui-content">
<div>静态显示文字：hello</div>
动态获取文字：<div id="context" ></div>
</body>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $.ajax({
            type: "GET",
            url: "http://localhost:8080/testController",
//            url: "testController",
            dataType: "json",
            success: function(data){
                debugger;
                $('#context').text(data.body);
            }
        });
    });
</script>
</html>